<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <div class="pageHeader">
        <div class="searchBar defect" >
            <ul class="searchContent">
            	<li>
            		<label style="width: 120px;"><@label key="requirementTriggerModeCode.C,colon">需求触发策略编号：</@label></label> 
            		<input type="text" class="textInput" name="requirementTriggerModeCode" value="${condition.requirementTriggerModeCode!''}" />
            	</li>
                <li>
                	<label style="width: 120px;"><@label key="requirementTriggerModeText.C,colon">需求触发策略描述：</@label></label> 
                	<input type="text" class="textInput" name="requirementTriggerModeText" value="${condition.requirementTriggerModeText!''}" />
                </li>
                <li>
                	<label><@label key="lockFlag.L">锁定标记：</@label></label> 
	                <select name="lockFlag">
							<option value=-1><@label key="all.C">所有</@label></option>
							<option value="0"<#if condition.lockFlag?? && condition.lockFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
							<option value="1"<#if condition.lockFlag?? && condition.lockFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
					</select>
				</li>
				<li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>                
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="ADDREQUIREMENTTRIGGERMODE" labelKey="add.B" defalutName="新增">
            <li>
            	<a class="add" target="dialog" mask="true" width="350" height="200" 
            	href="${rc.getContextPath()}/manage/requirementTriggerMode/addRequirementTriggerMode?navTabId=${navTabId!''}" 
            	rel="adddefect" title="<@label key='addRequirementTriggerMode.D'>物料需求触发策略新增</@label>">
            		<span><@label key="add.B">新增</@label></span>
            	</a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="MODIFYREQUIREMENTTRIGGERMODE" labelKey="edit.B" defalutName="编辑">
            <li>
            	<a class="edit" target="dialog" mask="true" width="420" height="250" 
            	href="${rc.getContextPath()}/manage/requirementTriggerMode/modifyRequirementTriggerMode?requirementTriggerModeCode={requirementTriggerMode_code}&navTabId=${navTabId!''}" 
            	rel="editdefect"  title="<@label key='editRequirementTriggerMode.D'>物料需求触发策略编辑</@label>">
            		<span><@label key="edit.B">编辑</@label></span>
            	</a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="VIEWREQUIREMENTTRIGGERMODE" labelKey="view.B" defalutName="详情">
            <li>
            	<a class="icon" target="dialog" mask="true" width="420" height="250" 
            	href="${rc.getContextPath()}/manage/requirementTriggerMode/viewRequirementTriggerMode?requirementTriggerModeCode={requirementTriggerMode_code}&navTabId=${navTabId!''}" 
            	rel="viewdefect" title="<@label key='viewRequirementTriggerMode.D'>物料需求触发策略详情</@label>">
            		<span><@label key="view.B">详情</@label></span>
            	</a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="DELETEREQUIREMENTTRIGGERMODE" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" 
            	href="${rc.getContextPath()}/manage/requirementTriggerMode/deleteRequirementTriggerMode?navTabId=${navTabId!''}" 
            	postType="string" rel="codes" callback="batchjobAjaxDone"
                title="<@label key='confirmDeleteRequirementTriggerMode.M'>确认要删除选择的物料需求触发策略？</@label>"><span><@label key="delete.B">删除</@label></span>
            </a>
            </li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="135" style="overflow:scroll;">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="codes" class="checkboxCtrl"></th>
                <th width="20"><@label key="serialNumber.C">序号</@label></th>
                <th width="80"><@label key="requirementTriggerModeCode.C">需求触发策略编号</@label></th>
                <th width="80"><@label key="requirementTriggerModeText.C">需求触发策略描述</@label></th>
                <th width="50"><@label key="lockFlag.C">锁定标记</@label></th>
                <th width="80"><@label key="createUser.C">创建人</@label></th>
                <th width="100"><@label key="createDateTime.C">创建时间</@label></th>
                <th width="80"><@label key="modifyUser.C">修改人</@label></th>
                <th width="100"><@label key="modifyDateTime.C">修改时间</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as requirementTriggerMode>
            <tr target="requirementTriggerMode_code" rel="${requirementTriggerMode.requirementTriggerModeCode!''}">
                <td><input name="codes" value="${requirementTriggerMode.requirementTriggerModeCode!''}" type="checkbox"></td>
                <td>${page.startRow + requirementTriggerMode_index}</td>
                <td>${requirementTriggerMode.requirementTriggerModeCode!''}</td>
                <td>${requirementTriggerMode.requirementTriggerModeText!''}</td>    
                <td><#if (requirementTriggerMode.lockFlag == 1)><@label key="yes.C">是</@label><#else><@label key="no.C">否</@label></#if></td>            
                <td>${requirementTriggerMode.createUser!''}</td>
                <td>${requirementTriggerMode.createDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
                <td>${requirementTriggerMode.modifyUser!''}</td>
                <td>${requirementTriggerMode.modifyDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
            </tr>
            </#list> <#else>
                <tr >
                <td colspan="7"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if> <#else>
            <tr >
                <td colspan="7"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>
